// 列表字段
export const tableOption = {
  border: true,
  //"index": true,
  //"indexLabel": "序号",
  stripe: true,
  menuAlign: "center",
  searchMenuSpan: 6,
  editBtn: false,
  delBtn: false,
  align: "center",
  viewBtn: false,
  searchBtnText: "查询",
  emptyBtnText: "重置",
  columnBtn: false,
  addBtn: false,
  dialogEscape: false,
  dialogClickModal: false,
  menuWidth: 160,
  column: [
    {
      type: "input",
      label: "ID",
      editDisplay: false,
      addDisplay: false,
      hide: true,
      prop: "id"
    },
    {
      type: "input",
      label: "合同编号",
      width: "120px",
      slot: true,
      search: true,
      prop: "contractNumber"
    },
    {
      type: "input",
      label: "公司名称",
      width: "150px",
      // slot: true,
      search: true,
      prop: "companyName"
    },
    {
      type: "select",
      dicUrl: "/admin/dict/type/rm_project_buiding_type",
      label: "房产类型",
      hide: true,
      search: true,
      prop: "buildingType"
    },
    {
      type: "select",
      dicUrl: "/admin/dict/type/contract_type",
      label: "合同类型",
      hide: false,
      search: true,
      prop: "contractTypeId",
      formatter: function(row, value, label, column) {
        return value + "";
      }
    },
    {
      type: "date",
      label: "签订日期",
      search: true,
      hide: true,
      searchslot: true,
      searchSpan: 8,
      valueFormat: "yyyy-MM-dd",
      prop: "signDate"
      // searchslot: true
    },
    {
      type: "input",
      label: "合同金额(元)",
      width: "100px",
      prop: "sumMoney"
    },
    {
      type: "input",
      label: "关联房产编号",
      width: "150px",
      slot: true,
      prop: "ctContractProject"
    },
    {
      type: "select",
      dicUrl: "/admin/dict/type/contract_status",
      label: "合同状态",
      //slot: true,
      prop: "contractStatus",
      formatter: function(row, value, label, column) {
        return value + "";
      }
    },
    {
      type: "input",
      label: "创建者",
      editDisplay: false,
      addDisplay: false,
      hide: true,
      prop: "createBy"
    },
    {
      type: "input",
      label: "创建时间",
      editDisplay: false,
      addDisplay: false,
      hide: true,
      prop: "createDate"
    },
    {
      type: "input",
      label: "更新者",
      editDisplay: false,
      addDisplay: false,
      hide: true,
      prop: "updateBy"
    },
    {
      type: "input",
      label: "操作时间",
      editDisplay: false,
      addDisplay: false,
      width: "150px",
      prop: "updateDate"
    }
  ]
};

// 新增市场管理服务费
export const tableMarketOption = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  refreshBtn: false,
  showClomnuBtn: false,
  searchSize: "mini",
  dialogEscape: false,
  dialogClickModal: false,
  column: [
    {
      label: "关联房产",
      prop: "type",
      addDisabled: true,
      editDisabled: true
    },
    {
      width: 150,
      label: "市场管理服务费单价",
      prop: "value",
      rules: [
        {
          required: true,
          message: "请输入数据值",
          trigger: "blur"
        }
      ]
    },
    {
      label: "税率",
      prop: "label",
      rules: [
        {
          required: true,
          message: "请输入标签名",
          trigger: "blur"
        }
      ]
    },
    {
      label: "含税金额(元/年)",
      prop: "description",
      rules: [
        {
          required: true,
          message: "请输入字典描述",
          trigger: "blur"
        }
      ]
    },
    {
      label: "不含税金额(元/年)",
      prop: "sort",
      type: "input",
      rules: [
        {
          required: true,
          message: "请输入排序",
          trigger: "blur"
        }
      ]
    },
    {
      label: "税金",
      prop: "remarks"
    },
    {
      label: "总金额",
      prop: "remarks"
    }
  ]
};
